// user/edit/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {
    wx.request({
      url: 'https://qh-free.supengjun.com/qinghang/api/user/user_details?user_id=100001',
      header: {
        token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiIhQCMkJSomIiwiYXVkIjoiIiwiaWF0IjoxNzAxMjM3OTI4LCJuYmYiOjE3MDEyMzc5MzEsImV4cCI6MTcwMTg0MjcyOCwiZGF0YSI6eyJ1aWQiOjEwMTA2NX19.5yLdFOiD8KV6rVNRGre35m1FJsisQOqc6k8ILQYtcAk"
      },
      success: (res) => {
        console.log(res)
        this.setData({
          ...res.data.data
        })
      }
    })
  },
})